package work20241207_chap8.n_demo11;

/**
 * @author zdl
 * @date 2024/12/5
 */
public class Rect implements Shape {


    @Override
    public double area() {
        return a * b;
    }

    @Override
    public double girth() {
        return (2 * (a + b));
    }
}
